package com.cn.serverline.lineicp.productionLine.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Data;
import java.sql.Timestamp;

/**
 * 型号节点库表
 *
 * @author Gmr
 * @since 2024-07-29
 */
@TableName("PLAN_MODEL_NODE_LIBRARY")
@Data
@EqualsAndHashCode(callSuper = false)
public class ModelNodeLibrary extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @ChineseDescription("主键ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 预案名称
     */
    @ApiModelProperty(value = "预案名称")
    @ChineseDescription("预案名称")
    @TableField("PLAN_NAME")
    private String planName;

    /**
     * 产品型号编码
     */
    @ApiModelProperty(value = "产品型号编码")
    @ChineseDescription("产品型号编码")
    @TableField("MODEL_CODE")
    private String modelCode;

    /**
     * 是否默认
     */
    @ApiModelProperty(value = "是否默认")
    @ChineseDescription("是否默认")
    @TableField("IS_DEFAULT")
    private Integer isDefault;

    /**
     * 型号节点编码
     */
    @ApiModelProperty(value = "型号节点编码")
    @ChineseDescription("型号节点编码")
    @TableField("MODEL_NODE_CODE")
    private String modelNodeCode;

    /**
     * 件
     */
    @ApiModelProperty(value = "件")
    @ChineseDescription("件")
    @TableField("PIECE")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long piece;

    /**
     * 天
     */
    @ApiModelProperty(value = "天")
    @ChineseDescription("天")
    @TableField("DAY")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long day;

    /**
     * 乐观锁
     */
    @ApiModelProperty(value = "乐观锁")
    @ChineseDescription("乐观锁")
    @TableField("VERSION")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @ChineseDescription("备注")
    @TableField("REMARK")
    private String remark;
}
